package com.hongning.railway.ui.main.mine.score.itemviewmodel;

import android.databinding.ObservableField;
import android.support.annotation.NonNull;

import com.hongning.railway.entity.resbean.ResScoreRankBean;
import com.hongning.railway.ui.main.mine.score.RankTypeFragmentViewModel;

import me.goldze.mvvmhabit.base.ItemViewModel;

public class RankItemViewModel extends ItemViewModel<RankTypeFragmentViewModel> {
    public ObservableField<String> name = new ObservableField<>();
    public ObservableField<String> score = new ObservableField<>();

    public RankItemViewModel(@NonNull RankTypeFragmentViewModel viewModel, ResScoreRankBean data) {
        super(viewModel);
        name.set(data.getName());
        score.set(data.getScore());
    }
}
